import React from 'react';
import { Link, useParams } from 'react-router-dom';

/**
 * 获取URL参数
 * @returns 
 */
export default function Invoice() {
    const params = useParams();
    return (
        <>
            <h1>Invoice {params.invoiceId}</h1>
            <nav>
                <Link to="/">Home</Link>  |{" "}
                <Link to="/about">About</Link>
            </nav>
        </>
    );
}
